﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MyTelRecordMasterList.aspx.cs" Inherits="YWTSSys.Web.MachineSys.YWTSWeb.yw.MyTelRecordMasterList" %>
<%--我的通话记录--%>
<div class="pageContent" style="padding:5px;">		   
        <table width="100%" border="0" cellpadding="0" cellspacing="0" >
            <tr>                
                <td   valign="top"> 
                                     
                        <div layoutH="12" style="border:solid 1px #CCC; border-bottom-width:0px!important; background:#fff"> 
		                    <div class="pageHeader" >
                                <form id="pagerForm" method="post" action="YWTSWeb/yw/MyTelRecordMasterList.aspx" onsubmit="return navTabSearch(this);" >
                                    <input type="hidden" name="orderField" value="<%=orderField %>" />
                                    <input type="hidden" name="orderDirection" value="<%=orderDirection %>" />
                                    <input type="hidden" name="pageNum" value="1" />
                                    <input type="hidden" name="numPerPage" value="<%=numPerPage %>" />
    
                                    <div class="searchBar">
                                    <table class="searchContent">
                                        <tr> 
                                            <td>
                                                查看时间:
                                            </td>        
                                            <td>
                                                <select class="combox" name="viewteldate" width="100px">
                                                    <option value="0" <%=viewteldate==0?"selected":"" %>>只看今天</option>
                                                    <option value="-1" <%=viewteldate==-1?"selected":"" %>>只看昨天</option>
                                                    <option value="-2" <%=viewteldate==-2?"selected":"" %>>只看前天</option>
                                                    <option value="-7" <%=viewteldate==-7?"selected":"" %>>最近一周</option>
                                                    <option value="-30" <%=viewteldate==-30?"selected":"" %>>最近一月</option>
                                                </select>
                                            </td>      
                                            <td>
                                                客户查找： 
                                            </td>
                                            <td>
                                               <input name="sqlvalue" type="text" value="<%=sqlvalue %>"  />
                                            </td>
                                            <td>
                                                 <div class="subBar">
                                                    <ul>
                                                        <li>
                                                            <div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div>
                                                        </li>
                                                    </ul>
                                                </div>
                   
                                            </td> 
                                        </tr>                                
                                    </table>       
                                    </div>
                                </form>
                            </div>
                            <div class="pageContent"  > 
                                <table class="table" width="100%" layoutH="105">
                                    <thead>
                                        <tr  > 
                                             <th width="90px" <%=GetDataListOrder("客户名称") %>>客户</th>
                                            <th width="120px" <%=GetDataListOrder("通话时间") %>>通话时间</th>
                                            <th width="60px" <%=GetDataListOrder("是否需回访") %>>需回访</th>  
                                            <th width="60px" <%=GetDataListOrder("是否已回访") %>>已回访</th>                
                                            <th  >通话内容</th>                       
                                        </tr>
                                    </thead>                
                                    <asp:repeater id="rpTelMenu" runat="server">
                                        <HeaderTemplate>   
                                        <tbody>   
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <tr  onclick=" var $rel=$('#MyTelRecordMasterList_TelRecordDetail'); $rel.loadUrl('YWTSWeb/yw/ViewMyTelRecord.aspx?TelID=<%# Eval("ID") %>', {}, function () {$rel.find('[layoutH]').layoutH();});"  >               
                                                 <td><%# Eval("客户名称")%></td> 
				                                <td><%# Eval("通话时间")%></td>
				                                <td style="color:<%# Convert.ToBoolean( Eval("是否需回访"))?"Red":""%>" ><%# Convert.ToBoolean( Eval("是否需回访"))?"是":"否"%></td>
                                                <td style="color:<%# Convert.ToBoolean( Eval("是否已回访"))?"Red":""%>"><%# Convert.ToBoolean(Eval("是否已回访")) ? "是" : "否"%></td>
                                                <td>
                                                    <%# YWTSSys.Library.StringHelper.GetStringLength(Eval("通话内容").ToString(),15)%>                                        
                                                </td>
                                                                      
			                                </tr>
                                        </ItemTemplate>
                                        <FooterTemplate>
                                            </tbody>                         
                                        </FooterTemplate>
                                    </asp:repeater>
                                </table>   
                                <div class="panelBar">
                                    <div class="pages">
                                        <span>显示</span>
                                        <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
                                           <%=SetnumPerPage() %>
                                        </select>
                                        <span>条，共<%=TotalCount%>条</span>
                                    </div>
                                    <div class="pagination" showPageNav="0" targettype="navTab" totalcount="<%=TotalCount%>" numperpage="<%=numPerPage %>"
                                        pagenumshown="10" currentpage="<%=pageNum %>">
                                    </div>
                                </div>                 
                            </div>
                        </div>
                    
                </td>
                <td valign="top"   style=" padding-left:5px;   background:#fff;width:300px;" >
                         <div  layoutH="12"  id="MyTelRecordMasterList_TelRecordDetail" style=" border-width:1px ; border-style:solid; border-color: #CCC; line-height:21px; ">
                            查看通话明细
                         </div>
                         <a  href="YWTSWeb/yw/ViewMyTelRecord.aspx?TelID=0" style="display:none;" target="ajax" rel="MyTelRecordMasterList_TelRecordDetail"  defautloadajax="true">相关客户消费及电话列表</a>
                          
                </td>
            </tr>
        </table>	
</div>